<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>教师评价板块</title>
    <link href="/static/evaluate/css/student1.css" rel="stylesheet">
    <link href="/static/evaluate/css/evaluation.css" rel="stylesheet">
    <link href="/static/evaluate/css/star.css" rel="stylesheet">
    <link href="/static/evaluate/css/bootstrap.css" rel="stylesheet">
    <link href="/static/evaluate/css/animate.css" rel="stylesheet">
    <link href="/static/evaluate/css/site.css" rel="stylesheet">
     <link href="/static/evaluate/css/evaluationT.css" rel="stylesheet">
</head>
<body>

<div class="wrap">
	<nav id="w1" class="navbar-default navbar-fixed-top navbar" role="navigation">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#w1-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="{% url 't_index' %}">校园互动评价平台</a>
            </div>
            <div id="w1-collapse" class="collapse navbar-collapse">
                <ul id="w2" class="navbar-nav navbar-right nav">
                    <li>
                        <a href="{% url 't_index' %}">首页</a>
                    </li>
                     <li>
                        <a href="/blog/">返回互动博客</a>
                    </li>
                    <li>
                        <a href="javascript:;" data-toggle="modal" data-target="#notice">联系我们</a>
                    </li>

                    <li>
                        <a href="{% url 'login' %}" >退出 ({{teacher.user_name}},老师)</a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>     
    <div class="container">
              
		<h1>2016-2017学年 下学期总评</h1>
		<form action="{% url 't_organization_save' %}" method="post">
		{% csrf_token %}
			<!-- 班级评价 -->
			<h2 class="group_title"><span>班级评价</span></h2>
			<ul class="class-list list-unstyled">
			<!-- 班级列表开始 -->
			{% for class in class_list  %}
				<li class="col-lg-3 col-md-4 col-sm-6">
					<div class="class-item" class_id="{{class.class_id}}">
						<img src="/static/evaluate/img/testClass.jpg" alt="">
						<span class="course_name">{{class.course_name}}</span>
						<span class="class_name">{{class.class_name}}</span>
					</div>
				</li>
			{% endfor %}
				
			</ul>
			<div class="separator"></div>
			<h2 class="group_title">
				<span>教学计划评价</span>
			</h2>
			<input type="hidden" name="EvalTeachingProg[course_id]" value="1">
			<div class="longtext">
				<textarea name="EvalTeachingProg[text]"  rows="15" required="required"></textarea>
			</div>
			<h2 class="group_title">
				<span>部门评价</span>
			</h2>
			<div class="longtext">
				<textarea name="EvalOrg[text]" rows="15" placeholder="可选文字评价，相应职能部门将收到您的文字评价并可对您回复"></textarea>
			</div>
			<div class="checkgroup">
				<p>以下勾选的职能部门将收到我的补充评价：</p>
				<label><input type="checkbox" name="EvalOrg[org_1]" value="1"> 教务处</label>
				<label><input type="checkbox" name="EvalOrg[org_2]" value="1"> 保卫处</label>
				<label><input type="checkbox" name="EvalOrg[org_3]" value="1"> 财务处</label>
				<label><input type="checkbox" name="EvalOrg[org_4]" value="1"> 校团委</label>
				<label><input type="checkbox" name="EvalOrg[org_5]" value="1"> 后勤基建处</label>
				<label><input type="checkbox" name="EvalOrg[org_6]" value="1"> 发展规划处</label>
			</div>
			<div class="separator"></div>
			<div class="text-center">
				<input type="submit" id="submit" value="评价完成，提交">
			</div>
		</form>
		<div id="evalClassDialog" class="fade modal" role="dialog" tabindex="-1">
			<div class="modal-dialog modal-lg">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
					<h2></h2>
				</div>
				<div class="modal-body">
					<form id="ajaxForm" action="{% url 't_evaluate_save_ajax' %}" method="post">
					{% csrf_token %}
						<input name="class_id" type="hidden" >
						<div class="row">
							<div class="col-lg-5">
								<img class="classImg" src="http://119.29.94.234/evaluation/web/index.php?r=teacher%2Fevaluation" alt="">
							</div>
							<div class="col-lg-7">
							<!-- 打分项 -->
								<div class="starsRow">
									<span>课堂纪律</span>
									<div class="starWidget">
										<span></span><span></span><span></span><span></span><span></span>
										<input type="hidden" name="classroom_discipline">
									</div>
								</div>
								<div class="starsRow">
									<span>作业情况</span>
									<div class="starWidget">
										<span></span><span></span><span></span><span></span><span></span>
										<input type="hidden" name="homework_quality">
									</div>
								</div>
								<div class="starsRow">
									<span>学习氛围</span>
									<div class="starWidget">
										<span></span><span></span><span></span><span></span><span></span>
										<input type="hidden" name="study_atmosphere">
									</div>
								</div>
								<div class="starsRow">
									<span>学生潜力</span>
									<div class="starWidget">
										<span></span><span></span><span></span><span></span><span></span>
										<input type="hidden" name="student_potential">
									</div>
								</div>
								<textarea name="text_eval" id="class_text_eval" rows="5" placeholder="可选文字评价"></textarea>
							</div>
						</div>
						<div class="result-container">
							<div class="separator"></div>
							<div class="result"></div>
						</div>
					</form>
				</div>
				<div class="modal-footer">
					<button class="btn btn-default" data-dismiss="modal">关闭</button>
					<button class="btn btn-primary" id="ajaxSubmit">提交</button>
				</div>
			</div>
		</div>
	</div>

	</div>
</div>

<footer class="footer">
    <div class="container">
        <p class="pull-left">© 校园互动评价平台 2017</p>
    </div>
</footer>
<!--联系模态框-->
            <div class="modal fade" id="notice" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-dialog" style="width:1000px">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                            <h4 class="modal-title" id="myModalLabel">敬爱的用户</h4>
                        </div>
                        <div class="modal-body">
                            使用中遇到问题，请发邮件反馈。谢谢您！
                            1432969079@qq.com
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-primary" data-dismiss="modal">关闭</button>
                        </div>
                    </div><!-- /.modal-content -->
                </div><!-- /.modal-dialog -->
            </div>
<script src="/static/evaluate/js/jquery.js"></script>
<script src="/static/evaluate/js/yii.js"></script>
<script src="/static/evaluate/js/yii.gridView.js"></script>
<script src="/static/evaluate/js/evaluation.js"></script>
<script src="/static/evaluate/js/star.js"></script>
<script src="/static/evaluate/js/bootstrap.js"></script>
<script type="text/javascript">jQuery(document).ready(function () {
jQuery('#evalClassDialog').modal({"show":false});
});</script>

</body></html>